// ... existing code ...
import { Next } from 'koa'; // This line caused the error

// ... existing code ...